.Editor {
  max-width: 816px;
  margin: auto;
  background: #fff;
  box-shadow: 0 1px 5px #ddd;
  min-height: 1172px !important;
  padding: 50px 100px 0 100px;
  // padding: 0 100px;
}
.footer {
  max-width: 816px;
  margin: 0 auto;
  padding-top: 25px;
  padding-bottom: 25px;
  text-align: center;
  color: #a5a5a5;
}

.hovering-toolbar {
  animation: fade-out 0.3s;
  --hover-top: -1000px;
  --hover-left: -1000px;
  position: absolute;
  background-color: #fff;
  border: 1px solid rgb(242, 243, 245);
  box-shadow: 0 0 4px rgb(229, 230, 235);
  padding: 3px 5px;
  z-index: 1000;
  top: var(--hover-top);
  left: var(--hover-left);
  .arco-icon {
    display: inline-block;
    color: rgb(29, 33, 41);
    font-style: normal;
    width: 1em;
    height: 1em;
    vertical-align: -2px;
    stroke: currentColor;
  }
  .toobar-ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;

    .toobar-item.toobar-item-hover {
      cursor: pointer;

      span {
        display: flex;
        align-items: center;
        padding: 2px 3px;
        svg {
          width: 30px;
          height: 27px;
        }
      }
      &.active {
        background-color: #e6e6e6;
        box-shadow: 0px 0px 0px 1px #d6d6d6 inset;
      }
      &:hover {
        box-shadow: 0px 0px 0px 1px #d6d6d6 inset;
      }
    }
    .toobar-item {
      display: flex;
      align-items: center;
      cursor: pointer;
      position: relative;

      .after_triangle_fn {
        @border-width: 6px;
        display: block;
        content: '';
        width: 0;
        height: 0;
        border: @border-width solid transparent;
        border-bottom-color: rgb(255, 255, 255);
        position: absolute;
        top: -(@border-width * 2);
        left: 50%;
        transform: translateX(-50%);
        filter: drop-shadow(rgba(0, 0, 0, 0.1) 0px -2px 1px);
      }
      .color-picker-container {
        width: 226px;
        padding: 16px;
        padding-bottom: 4px;
        box-sizing: border-box;
        background-color: white;
        box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
        border-radius: 2px;
        position: absolute;
        top: var(--top);
        left: 50%;
        transform: translateX(-50%);
        &::after {
          .after_triangle_fn;
        }
        .color-picker-palette {
          width: 198px;
          display: flex;
          flex-direction: column;
          align-items: stretch;
          .color-blocks-wrap {
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            .color-block {
              border: 1px solid rgba(65, 70, 75, 1);
              width: 18px;
              height: 18px;
              box-sizing: border-box;
              position: relative;
              margin: 4px;
              margin-left: 0;
              cursor: pointer;
              &.color-block-active {
                background: url()
                  no-repeat center;
              }
            }
          }
        }
        .more-color-wrap {
          height: 32px;
          display: flex;
          align-items: center;
          padding: 0 16px;
          box-sizing: border-box;
          margin-left: -16px;
          margin-right: -16px;
          font-size: 12px;
          font-weight: 400;
          color: #41464b;
          cursor: pointer;
          &:hover {
            background-color: #f9f9f9;
          }
          .panel-icon {
            width: 16px;
            height: 16px;
            background: url()
              no-repeat center;
          }
          .more-text {
            margin-left: 4px;
          }
          .flex-1 {
            flex: 1;
          }
          .dropdown-icon {
            width: 5px;
            height: 8px;
            background: url()
              no-repeat center;
            opacity: 0.3;
          }
        }
      }
      .select-dropdown {
        border-radius: 2px;
        box-shadow: 0 1px 6px rgba(99, 99, 99, 0.2);
        padding: 5px 0;
        position: absolute;
        background: #fff;
        z-index: 1060;
        cursor: pointer;
        font-size: 12px;
        font-weight: 500;
        color: #444;
        width: 110px;
        min-width: 40px;
        position: absolute;
        top: var(--top);
        left: 50%;
        transform: translateX(-50%);
        &::after {
          .after_triangle_fn;
        }
        .list-holder {
          display: flex;
          flex-direction: column;
          .list-item {
            padding: 0.75px 20px 0.75px 10px;
            display: flex;
            align-items: center;
            height: 30px;
            line-height: 1.15;
            &:hover {
              background-color: #f7f7f7;
            }
            .list-item-content {
              flex: auto;
              overflow: hidden;
              white-space: nowrap;
              text-overflow: ellipsis;
            }
          }
        }
      }
      .color-apply {
        width: 30px;
        display: inline-block;
      }
      .align-apply {
        width: 41px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .arrow-icon {
        display: inline-block;
        width: 11px;
        height: 27px;
        border-width: 1px 1px 1px 0;
        border-color: transparent;
        border-style: solid;
        &::after {
          content: '';
          display: inline-block;
          width: 0;
          height: 0;
          border: 3px solid transparent;
          border-top-color: #888;
          -webkit-transform: translate(3px, 0px) scaleX(0.83);
          transform: translate(3px, 0px) scaleX(0.83);
        }
        &.align-icon {
          transform: translateX(-7px);
        }
      }
      & > span.toobar-item-hover-span:hover {
        box-shadow: 0px 0px 0px 1px #d6d6d6 inset;
        background-color: #dcdcdc;
      }
    }
  }
}

@keyframes fade-out {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
